package com.gdit.zax.dao;

import java.util.ArrayList;

import com.gdit.zax.entitys.Comment;
import com.gdit.zax.entitys.CommentAll;

public interface CommentDao {
	public int getUseSendCommentSum(int uid);//获取用户发出的评论数
	public int getUseCommentSum(int uid);//获取所有的评论数量
	public int getNotReadCommentSum(int uid);//获取用户未读的评论、留言数
	public boolean sendComment(int uid,int vid,String connent);
	public boolean sendReComment(int cid,int uid,int touid,String connent);
	
	public Comment getCommentInfo(int cid);
	
	public boolean sendDiscus(int uid,int cid,String content);//发起课程评论
	
	public ArrayList<CommentAll> listMySendComment(int uid,int page,int onepagecount);
	
	
	public ArrayList<CommentAll> listVideoComment(int cid,int page,int onepagecount);
	public ArrayList<CommentAll> listCommentSub(int cid,int page,int onepagecount);//获取视频评论的回复
	
	public boolean delComment (int cid);
	
}
